<?php


namespace app\api\services;


use app\admin\model\HtnsBasestationStore;

class StoreService
{
    use ApiTrait;

    /**
     * @desc 获取主店
     */
    public function getMainStore()
    {
        $where['is_main'] = 1;
        $res = HtnsBasestationStore::where($where)->find();
        return $res;
    }
    // 门店列表
    public function getList($where = [])
    {
        $res = HtnsBasestationStore::where($where)->order('id desc')->select()->toArray();
        return $res;
    }
}